/**
 * 首页tab相关接口
 */
import type { GetTodaySignStatusResult, ReadingBookResult } from './type';
import { get } from '@/utils/request';

enum URL {
  getTodaySignStatus = '/app/custCourse/todaySignStatus',
  getBannerList = '/app/microclass/bannerList',
  getReadingBook = '/app/userMainPage/getReadingBook',
}

// 判断今日是否已签到
export const getTodaySignStatus = () => get<GetTodaySignStatusResult>({ url: URL.getTodaySignStatus });

// 轮播图
export const getBannerList = () => get<any>({ url: URL.getBannerList, data: { pageNum: 1, pageSize: 100 } });

// 查询 正在阅读的书
export const getReadingBook = () => get<ReadingBookResult>({ url: URL.getReadingBook });
